package com.tanhua.domain.mongo;

import lombok.Data;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * <p>
 * 推荐语言动态
 * </p>
 */
@Data
@Document(collection = "recommend_voice")
public class RecommendVoice implements Serializable {

    @Id
    private ObjectId id; // 语言动态id
    @Indexed
    private Long userId; // 推荐用户id

    private Long toUserId; // 被推荐的用户id

    private Long created; // 日期

    private Integer readStatus; // 读取状态
}